/*
 Copyright To change this template, choose Tools | Templates
 Copyright and open the template in the editor.
 */

package com.click.app.service.impl;

import com.click.app.dao.LaundryRequestDao;
import com.click.app.dao.PurchaseDao;
import com.click.app.model.Coin;
import com.click.app.model.Purchase;
import com.click.app.model.Supplier;
import com.click.app.service.PurchaseManager;
import com.click.app.service.SupplierManager;
import java.util.Date;
import java.util.List;



/**
 * @author Joel Chuca Condo
 * @date 04/05/2009
 */
public class PurchaseManagerImpl extends GenericManagerImpl<Purchase, Long> implements PurchaseManager {

    private PurchaseDao purchaseDao;

    public PurchaseManagerImpl(PurchaseDao purchaseDao){
        super(purchaseDao);
        this.purchaseDao = purchaseDao;
    }

    public List<Purchase> findPurchasesUnPaid(){
        return purchaseDao.findPurchasesUnPaid();
    }

    public Purchase findTotalMountPurchase(Supplier supplier){
        return purchaseDao.findTotalMountPurchase(supplier);
    }

    public Object suppliersReport(Date begin, Date end) {
        return purchaseDao.suppliersReport(begin, end);
    }


}
